#include "History.h"


History::History(short diedPiece, int xyxy, History* previous)
{
	History::init(diedPiece, xyxy, previous);
}

History::History() { this->setNull(); }

History::~History()
{
	setNull();
}

void History::setNull()
{
	this->diedPiece = 0;
	this->indexIndex = 0;
	this->previous = nullptr;
	return;
}

History* History::init(short diedPiece, int indexIndex, History* previous)
{
	this->diedPiece = diedPiece;
	this->indexIndex = indexIndex;
	this->previous = previous;
	return this;
}